<template>

	<view class="piece">

		<image class="avatar" :src="messageAbstract.avatar" mode="aspectFill"></image>
		<view class="description">
			<view class="username">{{messageAbstract.username}}</view>
			<view class="lastMessage">
				{{messageAbstract.lastMessage}}
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps(["messageAbstract"])
</script>

<style lang="scss">
	.piece {
		display: flex;
	}

	.avatar {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50%;
		margin-right: 20rpx;
	}

	.description {
		line-height: 50rpx;
	}

	.username {
		font-size: 36rpx;
		font-weight: bold;
		color: #2d2c2c;
	}

	.lastMessage {
		font-size: 30rpx;
		color: #737373;
	}
</style>